package com.bootlever.cloud.zp.server.controller;

import com.bootlever.cloud.pc.sdk.api.PcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ZpController {

    @Autowired
    private PcService pcService;

    @RequestMapping("/testFeign/{id}")
    public String testFeign(@PathVariable("id") String id){
        return pcService.getPc(id);
    }
}
